package list;

public class Book {

    private String name;
    private double price;
    private String author;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Book(String name, double price, String author) {

        this.name = name;
        this.price = price;
        this.author = author;
    }

    @Override
    public String toString() {
        return
        "名称：" + name + "\t" +
        "价格：" + price + "\t" +
        "作者：" + author;
    }
}
